package com.dayuanit.booksystem.v4.service;

import com.dayuanit.booksystem.v4.domain.PublisherInfo;
import com.dayuanit.booksystem.v4.entity.Publisher;

public interface PublisherService {

    void addPublisher(String name, String address);

    Publisher queryPublisher(String publisherName);

    Publisher queryPublisher(long publisherId);

    void updatePublisherAddress(long publisherId, String address);

    //添加出版社和图书信息
    void addPublisherAndBook(String publisherName, String publisherAddress,
                             String bookName, String author, String price);

    PublisherInfo loadPublisherInfo(long publisherId);

    PublisherInfo loadPublisherInfo2(long publisherId);
}
